package com.geline.uploadfile.pojo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 查询上传文件Bean
 * @author: mengxin
 * @date: 2022/11/14 16:08
 */
@Getter
@Setter
public class SelectFileBean implements Serializable {

    /* 文件ID */
    private String id;

    /* 文件服务器类型 */
    private String sysFileServer;

    /* 文件根目录 */
    private String bucket;

    /* 文件对象名 */
    private String objectName;

    public String getDeleteSql(String table){
        return String.format("delete from %s where id='%s'", table, id);
    }
}
